package cn.wolfcode.wolfcodemall.mapper;

import cn.wolfcode.wolfcodemall.domain.Admin;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface AdminMapper {
    int deleteByPrimaryKey(Integer adminId);

    int insert(Admin record);

    Admin selectByPrimaryKey(Integer adminId);

    List<Admin> selectAll();

    int updateByPrimaryKey(Admin record);

    //登录
    Admin login(@Param("username") String username, @Param("password") String password);

    void updateAdmin(@Param("map") Map<String,Object> map);
}